package edu.eas.admin.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import edu.eas.common.config.BaseSwaggerConfig;
import edu.eas.common.domain.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Swagger API文档相关配置
 *
 * @author cql
 */
@Configuration
@EnableSwagger2
@EnableKnife4j
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("edu.eas.admin.controller")
                .title("岭南教务系统后台管理模块")
                .description("岭南教务系统后台管理模块相关接口文档")
                .contactName("cql")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}